package org.xxpay.core.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class ChannelMchChannelInfo implements Serializable {
    private Long id;

    private Long channelMchId;

    private Integer payproduct;

    private Integer paypassage;

    private BigDecimal channelMchRate;

    private Byte status;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getChannelMchId() {
        return channelMchId;
    }

    public void setChannelMchId(Long channelMchId) {
        this.channelMchId = channelMchId;
    }

    public Integer getPayproduct() {
        return payproduct;
    }

    public void setPayproduct(Integer payproduct) {
        this.payproduct = payproduct;
    }

    public Integer getPaypassage() {
        return paypassage;
    }

    public void setPaypassage(Integer paypassage) {
        this.paypassage = paypassage;
    }

    public BigDecimal getChannelMchRate() {
        return channelMchRate;
    }

    public void setChannelMchRate(BigDecimal channelMchRate) {
        this.channelMchRate = channelMchRate;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", channelMchId=").append(channelMchId);
        sb.append(", payproduct=").append(payproduct);
        sb.append(", paypassage=").append(paypassage);
        sb.append(", channelMchRate=").append(channelMchRate);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ChannelMchChannelInfo other = (ChannelMchChannelInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getChannelMchId() == null ? other.getChannelMchId() == null : this.getChannelMchId().equals(other.getChannelMchId()))
            && (this.getPayproduct() == null ? other.getPayproduct() == null : this.getPayproduct().equals(other.getPayproduct()))
            && (this.getPaypassage() == null ? other.getPaypassage() == null : this.getPaypassage().equals(other.getPaypassage()))
            && (this.getChannelMchRate() == null ? other.getChannelMchRate() == null : this.getChannelMchRate().equals(other.getChannelMchRate()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChannelMchId() == null) ? 0 : getChannelMchId().hashCode());
        result = prime * result + ((getPayproduct() == null) ? 0 : getPayproduct().hashCode());
        result = prime * result + ((getPaypassage() == null) ? 0 : getPaypassage().hashCode());
        result = prime * result + ((getChannelMchRate() == null) ? 0 : getChannelMchRate().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}